﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Maps.MapControl;
using QuadTreeLib;
using System.Drawing;

namespace iPhoneTracker4Win.Models
{
    public enum TimeLocationType
    {
        CellLocation,
        WifiLocation,
    }

    public class TimeLocation : IHasRect
    {
        private static double DELTA = 0.00000001;

        public TimeLocation(DateTime timestamp, Location location, TimeLocationType type)
        {
            Timestamp = timestamp;
            Location = location;
            Type = type;
            _rectangle = new RectangleF(location.Longitude - DELTA, location.Latitude - DELTA, DELTA * 2, DELTA * 2);
        }

        public TimeLocationType Type;
        public DateTime Timestamp;
        public Location Location;

        private RectangleF _rectangle;
        public RectangleF Rectangle
        {
            get
            {
                return _rectangle;
            }
        }
    }
}
